<?php

namespace app\api\validate;

use think\Validate;

class Activity extends Validate
{
    protected $rule = [
        "id" => "require",
        "rname" => "require",
        "mobile"      => "require|mobile",
    ];

    protected $message = [
        'id.require' => '请选择活动',
        'rname.require' => '请填写姓名',
        'mobile.require'      => '请填写手机号码',
        'mobile.mobile'       => '手机号格式错误',
    ];

}